﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Edu.ZJ.Properties;

namespace Edu.ZJ
{
    public partial class HelpForm : Form
    {
        public HelpForm()
        {
            InitializeComponent();

            Init();
        }

        private void Init()
        {
            AddImageToBox(Resources.s2, groupBox2);
            AddImageToBox(Resources.s3, groupBox2);
            AddImageToBox(Resources.s4, groupBox2);
            AddImageToBox(Resources.s5, groupBox2);
            AddImageToBox(Resources.s6, groupBox2);
            AddImageToBox(Resources.s7, groupBox2);
            AddImageToBox(Resources.s8, groupBox2);
            AddImageToBox(Resources.s9, groupBox2);
            AddImageToBox(Resources.s10, groupBox2);
            AddImageToBox(Resources.s11, groupBox2);
            AddImageToBox(Resources.s12, groupBox2);
        }

        private void AddImageToBox(Bitmap bitmap, GroupBox box)
        {
            PictureBox p = new PictureBox();
            p.Dock = DockStyle.Bottom;
            p.SizeMode = PictureBoxSizeMode.StretchImage;
            p.Size = new Size(bitmap.Width, bitmap.Height);
            p.Image = bitmap;

            box.Controls.Add(p);
        }
    }
}
